package org.fitweb.fixture;

import fit.ColumnFixture;
import org.json.JSONPath;

public class JsonFixture extends ColumnFixture {

    public String name;

    private JSONPath json;

    public JsonFixture(String pageContents) {
        json = new JSONPath(pageContents);
    }

    public String value() {
        return json.get(name).toString();
    }
}
